package org.gvp.generator.constant;

/**
 * 导入类常量
 */
public interface ImportConstant {
    /**
     * 写入文件最后的结束符
     */
    public static final String TAILED = "}" ;
    public static final String LOCAL_DATE = "import java.time.LocalDateTime;\nimport java.time.LocalDate;";
    public static final String LOMBOK_DATA= "import lombok.Data;" ;
    public static final String LOMBOK_REQ_CONS = "import lombok.RequiredArgsConstructor;\n";
    public static final String MYBATIS_PLUS = """
    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    """ ;
    public static final String MYBATIS_PLUS_MAPPER = """
    import com.baomidou.mybatisplus.core.mapper.BaseMapper;
    import org.apache.ibatis.annotations.Mapper;
    """ ;
    public static final String MYBATIS_PLUS_WRAPPER = "import com.baomidou.mybatisplus.core.toolkit.Wrappers;";
     ;
    public static final String SPRING_AUTOWIRED = "import org.springframework.beans.factory.annotation.Autowired;" ;
    public static final String SPRING_REPOSITORY = "import org.springframework.stereotype.Repository;" ;
    public static final String SPRING_SERVICE = "import org.springframework.stereotype.Service;" ;
    public static final String SPRING_CONTROLLER = "import org.springframework.stereotype.Controller;" ;
    public static final String SPRING_REST_CONTROLLER = "import org.springframework.web.bind.annotation.RestController;" ;
    public static final String SPRING_REST_MAPPING_ALL = "import org.springframework.web.bind.annotation.*;" ;
    public static final String LOG4J2= "import lombok.extern.log4j.Log4j2;" ;
    public static final String XML_HEADER = """
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE mapper
            PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
            "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
    """ ;

    public static final String COMMON_REPOSITORY_IMPORT = "import org.gvp.common.constant.BaseRepository;" ;
    public static final String COMMON_SERVICE_IMPORT = "import org.gvp.common.constant.BaseService;" ;
    public static final String COMMON_CONTROLLER_IMPORT = "import org.gvp.common.constant.BaseController;" ;
    public static final String COMMON_TAG_ANNOTATION_IMPORT = "import org.gvp.summer.common.annotation.Tag;" ;
    public static final String COMMON_OPERATION_ANNOTATION_IMPORT = "import org.gvp.common.annotation.Operation;" ;
    public static final String LIST = "import java.util.List;" ;
    public static final String COMMON_PAGE = "import org.gvp.common.http.Page;";
    public static final String COMMON_RESULT = "import org.gvp.common.http.Result;";
}
